package ooday05;
/** 访问控制修饰符的演示 */
public class Aoo {
    public int a;   //任何类
    protected int b;//本类, 子类, 同包类
    int c;          //本类, 同包类
    private int d;  //本类

    void show(){
        a = 1;
        b = 2;
        c = 3;
        d = 4;
    }
}

class Boo{
    void show(){
        Aoo o = new Aoo();
        o.a = 1;
        o.b = 2;
        o.c = 3;
        // o.d = 4; //编译错误, 非本类无法使用

    }
}
